import request from '@/utils/http'

export const getOrderAPI = (id) => {
  return request({
    url: `/pay/order/${id}`,
    method: 'GET'
  })
}

export const payAPI = (id, password) => {
  return request({
    url: `/pay/${id}`,
    method: 'POST',
    params: {
      password
    }
  })
}